<!DOCTYPE html>
<html lang="en">

<head>
     {ms:include filename=headFile.htm/} 
</head>

<body>
    <div id="appCtrl" v-locak>
        <mt-header title="设置">
            <a href="javascript:;" @click="history.go(-1)" slot="left">
                <mt-button icon="back"></mt-button>
            </a>
        </mt-header>

        <div class="mt-cell-group" style="padding-top:0">
            <mt-cell 
            is-link
            to="{ms:global.url/}/186/index.html"
            title="重置密码">
            </mt-cell>
        </div>

        <div style="padding:15px">
            <mt-button size="large" type="primary" @click.native="submit">退出登录</mt-button>
        </div>
        
        

    </div>
    <script>
    var vm = new Vue({
        el: '#appCtrl',

        data: function(){
        	return {
        		
        	}
        },

        methods:{

            submit: function(){
                $.ajax({
                        type: 'POST',
                        url:'{ms:global.host/}/kder-api/user/logout.do',
                        data:{},
						dataType:'json',
                        success:function(res){
                            if(res.code==="0"){
                                  location.href = "{ms:global.url/}/183/index.html";
                            }else{
                                
                            }
                        }
                    })
                  //end ajax
            }
        }
    })
    </script>
</body>

</html>
